// 修改element里面的样式

.el-dropdown {
  .el-dropdown-link {
    & {
      cursor: pointer;
      display: flex;
      align-items: center;
      line-height: 22px;
    }
    & > span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
}

// 去除el-dropdown点击黑框
.el-tooltip__trigger:focus-visible {
  outline: unset;
}

.el-tabs {
  .el-tabs__active-bar {
    background-color: $blue;
  }
}

.el-tabs {
  .el-tabs__nav-wrap:after {
    height: 1px;
  }
}

.el-table {
  thead {
    th {
      background-color: #f5f7fa !important;
    }
  }
}

/* 解决按钮黑边框bug */
.el-button:focus {
  outline: none;
}

.el-table {
  .el-button [class*='el-icon'] + span {
    margin-left: 2px;
  }
}

// 抽屉边框
.el-drawer__header {
  border-bottom: 1px solid $lightBorder;
  margin-bottom: 0 !important;
  padding-bottom: 20px !important;
}
.el-drawer__footer {
  border-top: 1px solid $lightBorder;
}

// el-tree禁止选中
.custom-tree {
  [aria-disabled='true'] {
    .el-tree-node__content {
      cursor: not-allowed;
      color: $placeholderText;
      &:hover {
        background-color: #fff;
      }
    }
  }
  .el-tree-node:focus > .el-tree-node__content {
    background-color: transparent;
  }
}
